package com.itheima.mall.dubbo.mapper.pms;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.mall.entity.domain.pms.ProductAttribute;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PmsProductAttributeMapper extends BaseMapper<ProductAttribute> {
    @Select("select * from pms_product_attribute where product_attribute_category_id = #{cid} and type = #{type} limit #{begin},#{size}")
    List<ProductAttribute> getPage(@Param("cid") Integer cid, @Param("begin") int begin,
                                   @Param("size")int size, @Param("type") Integer type);
}
